<?php

// Get variables
$extensionsIds = v('extensionsIds');


// Sort extension ids

sort($extensionsIds);

?>

<ul class="breadcrumb">
	<li class="active">
		<a href="<?php p(url('[Loop]/page/admin/documentation/')); ?>" >Documentation</a>
	</li>
</ul>

<div>
	<table class="table table-hover table-bordered">
		<thead>
		    <tr>
		      <th>Extension</th>
		    </tr>
		</thead>
		<tbody>
		<?php

		// For each extension found, print it

		foreach ($extensionsIds as $extensionId)
		{
			// Get the path to extension

			$pathToExtension = app()->getPathHelper()->convertExtensionIdToPath($extensionId);

		?>
			<tr>
				<td>
					<a href="<?php p(url('[Loop]/page/admin/documentation/extension/') . '?extensionId=' . $extensionId);?>">
						<?php p($extensionId); ?>
					</a>
				</td>
			</tr>
		<?php
		}
		?>

		</tbody>
		</table>
</div>
